package com.aaa.car;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @fileName.CarApp
 * @description:
 * @author:zwl
 * @createTime:2020/11/10 12:54
 * @version:1.0.0
 */
@SpringBootApplication
@MapperScan("com.aaa.car.dao")
@EnableEurekaClient //开启Eureka客户端，该注解只对注册中心是Eureka有效
//@EnableDiscoveryClient  //开启发现客户端，该注解可以是任意注册中心
@EnableTransactionManagement //开启事务管理
@EnableSwagger2
@EnableFeignClients
public class CarApp {
    public static void main(String[] args) {
        SpringApplication.run(CarApp.class,args);
    }
}
